﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetBoardShort : MonoBehaviour {

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.layer == PhysicsLayer.Board)
        {
            if (collision.gameObject.GetComponent<BoardScript>() != null)
            {
                collision.gameObject.GetComponent<BoardScript>().SetColliderShort(true);
            }
        }
    }
}
